using Godot;
using System;

public class BlockAnimation : Node2D
{
    AnimationPlayer ap;
    Sprite sprite;
    public void SetTextrue(BlockMaterial bm)
    {
        sprite.Texture = bm.ItemMateria.texture;
    }
    public override void _Ready()
    {
        sprite = GetNode<Sprite>("Sprite");
        ap = GetNode<AnimationPlayer>("AnimationPlayer");
        ap.Play("place");
    }
    public void Finished(String str)
    {
        QueueFree();
    }
}
